import Vue from "vue";
import VueMeta from 'vue-meta'
import api from "@/api";
import * as filters from "@/filters";
// import './plugin/amap'
// import FastClick from 'fastclick'
import commonMixin from '@/mixins/common.js'
// FastClick.attach(document.body);
import '@/icons'
import clipboard from "@/directives/clipboard";
import request from "@/utils/request";
import cache from "@/utils/cache";
import uniPlugin from "@/plugin/uni";

Vue.prototype.$api = api;
Vue.prototype.$http = request;
Vue.prototype.$cache = cache

Object.keys(filters).forEach((key) => {
  Vue.filter(key, filters[key]);
});

Vue.mixin(commonMixin)
Vue.directive('clipboard', clipboard)
Vue.use(VueMeta, {
  // optional pluginOptions
  // refreshOnceOnNavigation: true
})

Vue.use(uniPlugin)